const isValidType = (payload, type = "[object Object]") => {
	return Object.prototype.toString.call(payload) === type;
}

const isPlainObject = (payload) => (payload === null || typeof payload === 'object');

export {
	isValidType,
	isPlainObject
}